package com.example.myandroidapp1.activity;

import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.MenuItem;

import com.example.myandroidapp1.R;
import com.example.myandroidapp1.SetPreferencesActivity;

public abstract class AbstractBaseActivity extends Activity {

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		super.onCreateOptionsMenu(menu);
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

	@Override
	public boolean onOptionsItemSelected(MenuItem item) {

		switch (item.getItemId()) {
		case R.id.aboutUs:

			break;
		case R.id.preferences:
			Intent pref = new Intent(this, SetPreferencesActivity.class);
			startActivity(pref);
			break;
		case R.id.exit:

			break;
		default:
			break;
		}

		return false;
	}
}
